MoreExam
1. Question Content...
EXPLANATION
Answer: X - EXPLANATION Content.
Question1: A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:How should the Developer change the request?
Question2: A Digital Developer is asked to optimize controller performance by lazy loading scripts as needed instead of loading all scripts at the start of the code execution.Which statement should the Developer use to lazy load scripts?
Question3: A Digital Developer is inspecting the weekly service status report for a critical internally-hosted web service used in the application and notices that there are too many instances of unavailability.Which two solutions are possible options to reduce the unavailability of the service? (Choose two.)
Question4: A Digital Developer added a file named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.Which cartridge path meets the project requirements?
Question5: When inspecting the weekly service status report for a critical internally hosted web service used in the application, a developer notices that there are too many instances of unavailability.Which two solutions can reduce the unavailability of the service?Choose 2 answers.
Question6: A merchant has a requirement to render personalized content to n a category page via a Content Slot that targets VIP high-spending customers during a specific promotional period.Which two items should the developer create to achieve the specified requirements?Choose 2 answers:
Question7: Once the Cache Information tool of the storefront toolkit is enabled, how can a Digital Developer view caching information for a particular component of the page?
Question8: Below is a form definition snippet from the newsletter.xml file:<?xml version="1.0"?><formxmlns=http://www.demandware.com/xml/form/2008-04-15><field formid="email" lavel="Email" type="String" mandatory="True" max-length="50" /></form>Which line of code creates a JSON object to contain the form data?
Question9: Which three configuration does a developer need to ensure to have a new product visible in the Storefront?Choose 3 answers
Question10: A Digital Developer is adding support for an additional language other than the default. The locale code for the new language is de.In which folder should the developer place resource bundles?
Question11: A merchant asks a developer to create a Cache Partition for the home page, so that when the home page is edited, only the home page is cleaned.Given the above requirement, where should the developer create that partition in Business Manager?
Question12: A developer has the following files in template/resources:account.proiertiesweight.unit=kilosaccount_en.propiertiesweight.unit=stonesaccount_en_US.propiertiesweight.unit= poundsUsing the default locale configuration, what is the current outcome of the page that renders the account.isml template snippet below when visiting the Sofrefront with the English for Canada(en_CA) locale= Your parcel weighs 10 ${Resource.msg('weight.unit','account')}
Question13: Universal Containers wants to add a model field to each product. Products will have locale-specific model values.How should the Digital Developer implement the requirement?
Question14: A Digital Developer noticed that cartridges in their workspace are NOT executing. The Developer confirms that the cartridges are uploaded to the B2C Commerce server connection's target version directory.Which action potentially solves this problem?
Question15: A developer is asked to improve the maintainability of a page by reducing its code repetition.What are two techniques the developer should implement to achieve this?Choose 2 answers.
Question16: Universal Containers calls the following combination of products "The Basics" and sells the combination as a unique product ID:* One Model 103 container* Five Model 611 container* Tree Model 201 containerThe Developer created these three products in the catalog.What is the next step in Business Manager to create "The Basics" as a combination?
Question17: A developer is writing a server side script that needs to maintain state across calls. The persistent information needed includes these items.* The current customer* Whether or not the customer is authenticated* The privacy attributes (such as tracking consent or cookie policy)Which technique should the developer use to maintain state in an efficient and scalable manner that follows best practice?
Question18: A Digital Developer adds the following line of code to a script.The code executes without error; however, the log file on disk does NOT contain the log message.Which two actions should be completed to write the log message to disk? (Choose two.)
Question19: A Digital Developer needs to check for product inventory in a specific inventory list using the Open Commerce API.An example request URL is:Which resource_id value enables the appropriate resource?
Question20: A client has two B2C Commerce sites in the same instance: one for the U.S market, the other for the European market. The products they make are sold with different safety certificates based-on the world location.For example, they sell a smartphone with certificate A in the U.S and certificate B in Europe, a hairdryer with certificate C in the U.S and certificate D in Europe, and more.How should a developer allow the merchant to display the appropriate certification logo in the produce to details page, depending on the customer's location?
Question21: A client uses tax tables in Business Manager to calculate tax. They recently started shipping to a new country, Italy, and the taxi s not being calculated correctly on the Storefront What is the likely problem?
Question22: A developer has a sandbox configured with a service and its profile and credential.. Now there is a requirement to allow changes to the service URL manually from the sandbox.Which B2C feature should the developer use to achieve the request?
Question23: A Digital Developer creates a B2C Commerce server connection in their UX Studio workspace. The Developer adds new cartridges to the workspace, but the cartridges do NOT execute as the Developer expects.Which three things should the Digital Developer verify to ensure the cartridges are uploaded? (Choose three.)
Question24: A developer wants to add a link to the My Account Page.What is the correct code to accomplish this?
Question25: Given the requirements:* To integrate with an external web service using HTTP requests* To create a service for this purpose with the Service framework using the LocalServiceRegistry class.* To test the service before the external service provider makes the API available Which solution allows the developer to satisfy the requirements?
Question26: Server.get('Show', consentTracking.consent, cache.applyDefaultCache, function (req,res,next){ Var Site = require('dw/system/Syte"); Var pageMetaHelpter = require('*/cartridge/scripts/helpers/pageMetaHelper'); pageMetaHelpter.setPageMetaTags(req.pageMetaData, Site.current); res.render('/home/homePage'); Missing code here}, pageMetadata.computedPageMetadata);The controller endpoint code snippet above does not work.Which line of code should the developer use to replace line 6 and correct the problem?
Question27: Given the customer basket described below:* A customer has an existing basket that consists of multiple items.* One of the items is identified as a gift item by an attribute at the product line item.The developer needs to write custom code to fetch the customer basket and then modify the basket based upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate shipment for the gift item.Four hooks are required to make the modification, beginning with modifyGETRespone and ending with validatebasket.* Dw.ocapi.shop.basket.modifyGETResponse* -- missing hook -* -- missing hook --* dw.ocapi.shop.basket.validateBasketWhat are the two missing hooks in the middle?
Question28: A developer has custom debug statements in a script, but the messages are not showing up in the Storefront Toolkit Request Log.Which step needs to be completed to get the messages to appear in the Request Log?
Question29: A merchant wants customers to be able to order gift vouchers via their site. Since they can issue an unlimited number of these digital vouchers, this item should be available to sell at all items.How can a developer use Business Manager to ensure that the gift vouchers are always available?
Question30: A client wants to differentiate their monobrand stores with a special icon when shown in the store locator. The information is saved in a true/false custom attribute for each Store object in Merchant tools.How should the developer follow SFRA best practices to expose this data for rendering?
Question31: A developer needs to show only car accessories when shoppers use the search term car accessories and exclude technology accessories and household accessories.Given the above requirement, what is the recommended approach using the Search Dictionaries Dashboard?
Question32: A Digital Developer has a new requirement to disable the "Discover" credit card type for all checkouts.What does the Developer need to change in Business Manager to fulfill this requirement?
Question33: Given a job step configured in the steptype.json, a developer needs to add a custom status code"No_FILES_FOUND".Which code snippet will complete the requirement?
Question34: A Digital Developer is tasked with setting up a new Digital Server Connection using UX Studio in their sandbox.Which three items are required to accomplish this task? (Choose three.)
Question35: A merchant requires that an existing section of the Site become editable from the Business Manager, so that they can modify it independently of the developer.Which of these is an important factor for a developer to consider when choosing the appropriate solution between a content slot and a Page Designer component?
Question36: Universal Containers created a site export file from staging in the global export directory.How should the Digital Developer update their sandbox using this staging site export file?
Question37: A Digital Developer has been given a requirement to add fault tolerance to an existing web service integration that uses Service Framework. Administrators at Universal Containers need to be able to configure the timeout and rate limiting.Which approach should the Developer use to implement the requirement?
Question38: Which three techniques improve client-side performance in production while following documented best practices? (Choose three.)
Question39: A digital instance has one site, with one master product catalog separate from the site catalog. Some, but NOT all, products in the master catalog are assigned to categories of the site catalog.Using Business Manager, how can a Digital Developer create a catalog export file that contains only the products assigned to the site catalog?
Question40: Assume the code below is executing:Business Manager has the configuration:* Active Log category is "root" with log level of "info."Given this information, what is the beginning of the filename in which the log will be written?